#ifndef GLOBALCONFIG_H
#define GLOBALCONFIG_H
#include <QString>
class GlobalConfig
{
public:
    GlobalConfig();

    quint16 tcpPort(){ return m_tcpPort;}
    quint16 udpPort(){ return m_udpPort;}
    quint16 broadcastPort(){ return m_broadcastPort;}

    QString uuid(){ return m_uuid;}
    QString name(){ return m_name;}
    QString autograph(){ return m_autograph;}
    QString friendPhotoPath(){ return m_friendPhotoPath;}
    QString userPhotoPath(){ return m_userPhotoPath;}
    QString downloadPath(){ return m_downloadPath;}

    //设置Tcp通信端口
    void setTcpPort(quint16 port);
    //设置Udp单播通信端口
    void setUdpPort(quint16 port);
    //设置Udp广播端口
    void setBroadcastPort(quint16 port);
    //设置自己名字
    void setName(const QString &name);
    //设置签名
    void setAutograph(const QString &autograph);
    //设置头像路径
    void setUserPhotoPath(const QString &path);
    //设置文件下载路径
    void setDownloadPath(const QString &path);
private:
    quint16 m_tcpPort;
    quint16 m_udpPort;
    quint16 m_broadcastPort;

    QString m_uuid;
    QString m_name;
    QString m_autograph;        //修改个性签名
    QString m_friendPhotoPath;  //朋友的默认头像
    QString m_userPhotoPath;    //用户头像
    QString m_downloadPath;     //文件下载路径

};

#endif // GLOBALCONFIG_H
